package ltd.hxya.novel.crawl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import ltd.hxya.novel.common.bean.BaseEntity;

import java.io.Serializable;

/**
 * <p>
 * 爬虫源表
 * </p>
 *
 * @author hxya
 * @since 2022-09-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("crawl_source")
@ApiModel(value="CrawlSource对象", description="爬虫源表")
public class CrawlSource extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "源站名")
    private String sourceName;

    @ApiModelProperty(value = "爬虫源状态，0：关闭，1：开启")
    private Boolean sourceStatus;


}
